﻿@model DateTime

@{
    ViewBag.Title = "Date";
}

<h2>Date</h2>
<script src="../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
<script src="../Scripts/jquery-ui-1.8.11.js" type="text/javascript"></script>

@Html.TextBox("", Model.ToString("dd/MM/yyyy"), 
 new { @class = "date" })



$(document).ready(function () {
    $('.date').datepicker({dateFormat: "dd/mm/yy"});
});
